package com.zone.http;

import com.zone.IRagService;
import com.zone.RedisKeys;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: zongzi
 * @description: TODO
 * @date: 2025/4/13
 */
@RestController
@CrossOrigin("${app.config.cross-origin}")
@RequestMapping("/api/${app.config.api-version}/rag/")
public class RagServiceController implements IRagService {

    @Autowired
    private RedissonClient redissonClient;

    @GetMapping("query_rag_tag_list")
    public List<String> queryRagTagList() {
        return redissonClient.getList(RedisKeys.RAG_TAG_LIST);
    }


}
